Core Java - Interview Questions and Answers for 'Exception handling' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Newest

   
 Q31. What is the difference between ArrayIndexOutOfBoundException and ArrayStoreException?Core Java
 This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     exception handling


Related Questions

  What are the ways to avoid LazyInitializationException ?
  How compiler handles the exceptions in overriding ?
  What things should be kept in mind while creating your own exceptions in Java?
  Difference between Checked and Unchecked exceptions ?
  Explain java.lang.OutOfMemoryError ?
  When do you get ClassCastException?

or

What is ClassCastException ?
  If you are given a choice to implement the code to either Insert a Record or Update if already exist, Which approach will you follow ?
  Explain throw, throws , try and catch in Java ?
  What is ConcurrentModificationException ?
 What will happen if we don't have termination statement in recursion ?


 Q32. If we have a return statement inside the finally block, Then what will happen ?Core Java
Ans. Returning from inside a finally block will cause exceptions to be lost. A return statement inside a finally block will cause any exception that might be thrown in the try block to be discarded.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     exception handling  finally block     Asked in 1 Companies


Related Questions

  What things should be kept in mind while creating your own exceptions in Java?
  Difference between Checked and Unchecked exceptions ?
  Explain throw, throws , try and catch in Java ?
 Differences between class not found exception and noclassdef found error ?
  Is it necessary that each try block to be followed by catch block ?
  What is exception propogation ?
  Can we have try and catch blocks within finally ?
 When does the finally block gets executed ?
 When is the situation when finally section won't execute ?
  How does a try statement determine which catch clause should be used to handle an exception?


 Q33. What is Throwable ?Core Java
Ans. Throwable in java is a class that is the superclass of all exceptions and errors which may occurs in java program.It extends obcect class.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     exception handling   throwable     Asked in 1 Companies      basic


Related Questions

  What things should be kept in mind while creating your own exceptions in Java?
  Difference between Checked and Unchecked exceptions ?
  Explain throw, throws , try and catch in Java ?
 Differences between class not found exception and noclassdef found error ?
  Is it necessary that each try block to be followed by catch block ?
  What is exception propogation ?
  Can we have try and catch blocks within finally ?
 When does the finally block gets executed ?
 When is the situation when finally section won't execute ?
  How does a try statement determine which catch clause should be used to handle an exception?


 Q34. In Case a method is declared to throw an exception , We can only use a call to that method if ...Core Java
a. We use the call within try block and catch the exception
b. We declare that the method is expected to throw the exception using throws
c. Both 1 and 2
d. Either 1 or 2

Ans.d. Either 1 or 2

 Q35. Which of the following is true ?Core Java
a. throw and throws are used to throw an exception
b. throw is used to throw an exception whereas throws is a declaration that the method can throw the exception
c. throws is used to throw an exception whereas throw is a declaration that the method can throw the exception
d. throw and throws are used to declare that an exception can be thrown by the method

Ans.b. throw is used to throw an exception whereas throws is a declaration that the method can throw the exception

 Q36. throws is a declaration that the ..... is expected to throw an exception ?Core Java
a. Variable
b. Method
c. Class
d. Interface

Ans.b. Method

previous 30   

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: